package com.working.project.data.remote

import com.working.libbase.model.ArticleResponse
import com.working.libbase.model.ProjectTreeResponse
import com.working.libnet.model.PageBean
import com.working.libnet.model.WanResponse
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface ProjectServices {

    @GET("project/tree/json")
    suspend fun getProjectTree(): WanResponse<List<ProjectTreeResponse>>

    @GET("project/list/{index}/json")
    suspend fun getProjectList(
        @Path("index") index: Int,
        @Query("cid") cid: Int
    ): WanResponse<PageBean<ArticleResponse>>

}